// getters计算属性 存取token
const getters = {
    token: state => state.user.token,
    name: state => state.user.userInfo.username,
    userId: state => state.user.userInfo.userId,
}
export default getters